﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="PrescriptionList.aspx.cs" Inherits="web.admin.PrescriptionList" 
        Title="中药列表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Label ID="label1" Text="疾病：" runat="server" />&nbsp;
                    <asp:DropDownList ID="DiseaseNameList" runat="server" />&nbsp;
                    <asp:Button ID="btnGetPrescriptionList" runat="server" Text="查询该疾病中药方" OnClick="btnGetPrescriptionList_Click" />
                </td>
            </tr>
            
            <tr><td height="20"></td></tr>
            
            <tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Button ID="btnSetSelectedAsClassic" runat="server" Text="设置经典药方" OnClick="btnSetSelectedAsClassic_Click" OnClientClick='return confirm("确定继续操作么?")' />
                </td>
            </tr>
            
            <tr><td height="20"></td></tr>
            
	        <tr>
	            <td>
                   <asp:GridView ID="prescriptionListGridView" runat="server" AutoGenerateColumns="False"  DataKeyNames="id" SkinID="orange">
                        <Columns>
                        
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblHospitalTitle" Text="医院" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblHospital" Text='<%# Eval("DoctorHospital") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="15%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblDoctorNameTitle" Text="医生" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblDoctorName" Text='<%# Eval("DoctorName") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="15%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblNameTitle" Text="中药方名称" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="lblName" Text='<%# Eval("Name") %>' runat="server" NavigateUrl='<%# "PrescriptionDetail.aspx?pid=" + Eval("Id") %>'/>
                                </ItemTemplate>
                                <ItemStyle Width="30%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblDiseaseNameTitle" Text="疾病名词" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblDiseaseName" Text='<%# Eval("DiseaseName") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="35%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                        type="checkbox" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk" Checked='<%# Eval("IsClassic") %>' runat="server" />
                                    <asp:Label ID="lblClassic" Text="经典" ForeColor="Red" Visible="false" runat="server"/>
                                </ItemTemplate>
                            </asp:TemplateField>                                       
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	        
	       <tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Button ID="ButtonUpdateAllDoctorInfo" runat="server" Text="更新所有医生信息" OnClick="btnUpdateAllDoctorInfo_Click" OnClientClick='return confirm("确定继续操作么?")' />
                </td>
                
                 <td  style="FONT-SIZE: 12px">
                    <asp:Button ID="ButtonUpdateAllPrescriptions" runat="server" Text="更新所有药方信息" OnClick="btnUpdateAllPrescriptionInfo_Click" OnClientClick='return confirm("确定继续操作么?")' />
                </td>
            </tr>
	    </tbody>
    </table>	  
</asp:Content>
